package com.nanjing.east.cloud.dao;

import com.nanjing.east.cloud.domain.PayOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PayOrderDAO extends JpaRepository<PayOrder,Long>, JpaSpecificationExecutor<PayOrder> {
    List<PayOrder> findByPayResultAndPayChannelId(@Param("payResult") Integer payResult,@Param("payChannelId") Integer payChannelId);

    PayOrder  findByPayOrderNo(@Param("payOrderNo") String payOrderNo);

    List<PayOrder> findByPayResult(@Param("payResult") Integer payResult);
}
